package com.zy.kotlinbaselibrary.base.application


import android.app.Application
import com.zy.kotlinbaselibrary.net.NetProvider

/**
 * Created by zy on 2018/5/17.
 */

abstract class BaseApplication : Application() {

    var netProvider: NetProvider? = null

    override fun onCreate() {
        super.onCreate()
        registerProvider()
    }

    /**
     * 给okhttp注册NetProvider,默认有个BaseProvider
     */
    protected abstract fun registerProvider()
}
